package main

import (
	"fmt"
	"time"
)

func main() {
	timer := time.NewTimer(10*time.Second)
	//通过reset重置
	ok := timer.Reset(1*time.Second)
	fmt.Println("是否重置成功：",ok)
	<-timer.C
	fmt.Println("重置时间后的打印")
}
